﻿Public Class RecipeList
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Request.Params("Tag") = Nothing Or Request.Params("Tag") = "" Then
            RecipeListDS.SelectCommand = "SELECT * FROM Recipes"
        Else
            RecipeListDS.SelectCommand = "SELECT DISTINCT * FROM RecipeTagView WHERE ([Tag] = ?)"

        End If
    End Sub


End Class